const mongoose = require('mongoose');

const schema = new mongoose.Schema({
    waste_url:      {type: String,default: ''},
    species:        {type: String,default: ''},//种类：金属/塑料/纸张...
    waste_name:     {type: String,default: ''},
    price:          {type: Number,default: 0},
    describe:       {type: String,default: ''},//描述
    compute_mode:   {type: String,default: ''},//计算方式：按重量/按数量/按物品
    is_recycle:     {type: Boolean,default: true},//是否可回收
})
module.exports = mongoose.model('Waste',schema);